package com.java.system.common.msg;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @ClassName: Result
 * @Description:
 * @Version: v1.0.0
 * @Author: greatesky
 * @Date: 2019/9/7 11:22
 * Modification History:
 * Date             Author      Version     Description
 * -------------------------------------------------------------
 * 2019/9/7      greatesky      v1.0.0      创建
 */
@ApiModel(value = "统一响应结果")
@Data
@Accessors(chain = true)
public class Result<T> implements Serializable {
    private static final long serialVersionUID = -5336210741362413873L;

    @ApiModelProperty(value = "接口调用是否成功，true = 成功，false = 不成功")
    private Boolean isSuccess;

    @ApiModelProperty(value = "响应结果标识符")
    private String code;

    @ApiModelProperty(value = "响应结果说明")
    private String message;

    @ApiModelProperty(value = "响应数据")
    private T data;
}
